import request from '../axios';

const interfaceObj = {
  getHomeinfo2() {
    return request({
      url: '/home',
      method: 'get',
    });
  },
  getUserinfo() {
    return request({
      url: '/userdata',
      method: 'get',
    });
  },
  getTruckTreeinfo() {
    return request({
      url: '/truck',
      method: 'get',
    });
  },
  login() {
    return request({
      url: '/role',
      method: 'post',
    });
  },
};
// export const getHomeinfo = () => {
//   return request.request({
//     url: '/home',
//     method: 'get',
//   });
// };

export default interfaceObj;
